#!/usr/local/bin/ruby
Dir.entries(Dir.pwd).select{|f| f =~ /md$/}.each do |file| 
  file =~ /(.*).md$/ 
  system "pandoc -f markdown -t html \"#{$1}.md\" > \"#{$1}.html\""
end
   
